home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / ncs06010.geo / 00025.ls < prev    next >
Encoding:
Text File  |  1997-03-19  |  5.0 KB  |  268 lines

  1. on startMovie
  2.   global SelectedTool
  3.   Set_CDcounter(1)
  4.   initLesson()
  5.   CheckForTagWd()
  6.   Set_NEXT(1)
  7.   initScreenBTns()
  8.   repeat with i = 27 to 33
  9.     set the visible of sprite i to 0
  10.   end repeat
  11.   set SelectedTool to EMPTY
  12. end
  13.  
  14. on handleReturn
  15.   go(1, "NC_MM030.GEO")
  16. end
  17.  
  18. on initScreenBTns
  19.   set_EmailSprite(21)
  20.   set_WWWSprite(20)
  21.   set_NewsGroupSprite(22)
  22.   set_InDepthSprite(35)
  23.   set_ExitSprite(36)
  24. end
  25.  
  26. on TheinitCursor
  27.   initCursorCastNum()
  28.   initCursorList(1)
  29.   set CursorCastNum to getCursor(2)
  30.   cursor([CursorCastNum, CursorCastNum + 1])
  31. end
  32.  
  33. on BlinkNext
  34.   if (the timer > getTimer()) and not soundBusy(2) then
  35.     startTimer()
  36.     if the name of cast the castNum of sprite get_NEXTSprite() = "NEXT" then
  37.       set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT_E"
  38.     else
  39.       set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT"
  40.     end if
  41.   end if
  42. end
  43.  
  44. on checkScreenStatus
  45.   CheckRollOver()
  46.   go(the frame)
  47. end
  48.  
  49. on PressBtn theBtn
  50.   Set_PressedLast(theBtn)
  51.   switchButt(Get_AnsSprite() + theBtn - 1, "down" & theBtn, "HandleBtn" && theBtn)
  52. end
  53.  
  54. on GoNext
  55.   if not get_Disabled() then
  56.     sound stop 2
  57.     set nextVal to Get_NEXT()
  58.     if nextVal = 1 then
  59.       go("t1")
  60.     else
  61.       if nextVal = 2 then
  62.         go("t2")
  63.       else
  64.         if nextVal = 7 then
  65.           go(1, "NC_MM030.GEO")
  66.           exit
  67.         end if
  68.       end if
  69.     end if
  70.     Set_NEXT(nextVal + 1)
  71.   end if
  72. end
  73.  
  74. on stopMovie
  75.   sound stop 2
  76.   setEmptyCursor()
  77. end
  78.  
  79. on GoNextMovie
  80.   set toolNum to Get_CurrentTool()
  81.   set theVec to EMPTY
  82.   do("put" && "get_ScreensTool" & toolNum & "()" && "into theVec")
  83.   Set_CurrentSnakeScreens(theVec)
  84.   do("put" && "Get_WasInPathTool" & toolNum & "()" && "into theVec")
  85.   repeat with i = 1 to the number of items in theVec
  86.     put value(item i of theVec) into item i of theVec
  87.   end repeat
  88.   Set_SeenINPath(theVec)
  89.   set cdNum to Get_CDcounter()
  90.   set movieName to item cdNum of Get_CurrentSnakeScreens()
  91.   go("INIT" & Get_ScreenSubject(), movieName & ".GEO")
  92. end
  93.  
  94. on handleEmail
  95.   global SelectedTool
  96.   ShowV()
  97.   set SelectedTool to "Email"
  98.   go("EMail")
  99. end
  100.  
  101. on handleWWW
  102.   global SelectedTool
  103.   ShowV()
  104.   set SelectedTool to "WWW"
  105.   go("WWW")
  106. end
  107.  
  108. on handleNewsGroup
  109.   global SelectedTool
  110.   ShowV()
  111.   set SelectedTool to "NewsGroup"
  112.   go("NewsGroup")
  113. end
  114.  
  115. on handleIRC
  116.   global SelectedTool
  117.   ShowV()
  118.   set SelectedTool to "IRC"
  119.   go("IRC")
  120. end
  121.  
  122. on handleFTP
  123.   global SelectedTool
  124.   ShowV()
  125.   set SelectedTool to "FTP"
  126.   go("FTP")
  127. end
  128.  
  129. on handleGOPHER
  130.   global SelectedTool
  131.   ShowV()
  132.   set SelectedTool to "GOPHER"
  133.   go("GOPHER")
  134. end
  135.  
  136. on handleIPHONE
  137.   global SelectedTool
  138.   ShowV()
  139.   set SelectedTool to "IPHONE"
  140.   go("IPHONE")
  141. end
  142.  
  143. on HandleInDepth
  144.   global SelectedTool
  145.   if SelectedTool = "EMail" then
  146.     Set_CurrentTool("02")
  147.   else
  148.     if SelectedTool = "WWW" then
  149.       Set_CurrentTool("01")
  150.     else
  151.       if SelectedTool = "NewsGroup" then
  152.         Set_CurrentTool("03")
  153.       else
  154.         if SelectedTool = "IRC" then
  155.           Set_CurrentTool("04")
  156.         else
  157.           if SelectedTool = "FTP" then
  158.             Set_CurrentTool("05")
  159.           else
  160.             if SelectedTool = "GOPHER" then
  161.               Set_CurrentTool("07")
  162.             else
  163.               if SelectedTool = "IPHONE" then
  164.                 Set_CurrentTool("08")
  165.               end if
  166.             end if
  167.           end if
  168.         end if
  169.       end if
  170.     end if
  171.   end if
  172.   GoNextMovie()
  173. end
  174.  
  175. on ShowV
  176.   global SelectedTool
  177.   if SelectedTool = "EMail" then
  178.     set the visible of sprite 28 to 1
  179.   else
  180.     if SelectedTool = "WWW" then
  181.       set the visible of sprite 27 to 1
  182.     else
  183.       if SelectedTool = "NewsGroup" then
  184.         set the visible of sprite 29 to 1
  185.       else
  186.         if SelectedTool = "IRC" then
  187.           set the visible of sprite 30 to 1
  188.         else
  189.           if SelectedTool = "FTP" then
  190.             set the visible of sprite 31 to 1
  191.           else
  192.             if SelectedTool = "GOPHER" then
  193.               set the visible of sprite 32 to 1
  194.             else
  195.               if SelectedTool = "IPHONE" then
  196.                 set the visible of sprite 33 to 1
  197.               end if
  198.             end if
  199.           end if
  200.         end if
  201.       end if
  202.     end if
  203.   end if
  204. end
  205.  
  206. on handleExit
  207.   sound stop 2
  208.   ShowV()
  209.   setWndCursors(0)
  210.   Set_NEXT(2)
  211.   go("t2+")
  212. end
  213.  
  214. on setWndCursors whichCurs
  215.   UpdateCursors(get_ExitSprite(), whichCurs)
  216.   UpdateCursors(get_InDepthSprite(), whichCurs)
  217. end
  218.  
  219. on set_EmailSprite int
  220.   global EmailSprite
  221.   set EmailSprite to int
  222. end
  223.  
  224. on get_EmailSprite
  225.   global EmailSprite
  226.   return EmailSprite
  227. end
  228.  
  229. on set_WWWSprite int
  230.   global WWWSprite
  231.   set WWWSprite to int
  232. end
  233.  
  234. on get_WWWSprite
  235.   global WWWSprite
  236.   return WWWSprite
  237. end
  238.  
  239. on set_NewsGroupSprite int
  240.   global NewsGroupSprite
  241.   set NewsGroupSprite to int
  242. end
  243.  
  244. on get_NewsGroupSprite
  245.   global NewsGroupSprite
  246.   return NewsGroupSprite
  247. end
  248.  
  249. on set_ExitSprite int
  250.   global ExitSprite
  251.   set ExitSprite to int
  252. end
  253.  
  254. on get_ExitSprite
  255.   global ExitSprite
  256.   return ExitSprite
  257. end
  258.  
  259. on set_InDepthSprite int
  260.   global InDepthSprite
  261.   set InDepthSprite to int
  262. end
  263.  
  264. on get_InDepthSprite
  265.   global InDepthSprite
  266.   return InDepthSprite
  267. end
  268.